]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Load OSK layouts resource
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 10 Aug 2017 19:27:25 +0000 (21:27 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 5 Feb 2018 16:46:57 +0000 (17:46 +0100)
js/ui/main.js

index d581fd4810a49dac2c3c485f6b6cd061917ea4cf..0f53edf488e5be1588cc5e7e40549879dd9d6632 100644 (file)
@@ -85,6 +85,7 @@ let _defaultCssStylesheet = null;
 let _cssStylesheet = null;
 let _a11ySettings = null;
 let _themeResource = null;
+let _oskResource = null;
 
 function _sessionUpdated() {
     if (sessionMode.isPrimary)
@@ -148,6 +149,7 @@ function _initializeUI() {
     Shell.AppUsage.get_default();
 
     reloadThemeResource();
+    _loadOskLayouts();
     _loadDefaultStylesheet();
 
     // Setup the stage hierarchy early
@@ -309,6 +311,11 @@ function reloadThemeResource() {
     _themeResource._register();
 }
 
+function _loadOskLayouts() {
+    _oskResource = Gio.Resource.load(global.datadir + '/gnome-shell-osk-layouts.gresource');
+    _oskResource._register();
+}
+
 /**
  * loadTheme:
  *